package touhou.utils;

import java.awt.Canvas;
//import java.util.Vector;

import touhou.entity.BigBubble;
import touhou.entity.Bubble;
import touhou.entity.SmallBubble;

/**
 * Factory de Bubble.
 */
public class BubbleFactory {

	private static BubbleFactory self = null;

	private static Canvas canvas;

	private BubbleFactory(Canvas canvas) {
		BubbleFactory.canvas = canvas;
	}

	public static BubbleFactory getInstance(Canvas canvas) {
		if (self == null)
			self = new BubbleFactory(canvas);
		return self;
	}

	public Bubble createBubble() {
		Bubble bullet = new Bubble(canvas);
		return bullet;
	}
	
	public SmallBubble createSmallBubble() {
		SmallBubble bullet = new SmallBubble(canvas);
		return bullet;
	}
	
	public BigBubble createBigBubble() {
		BigBubble bullet = new BigBubble(canvas);
		return bullet;
	}
}
